﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;
using static System.Net.Mime.MediaTypeNames;

namespace ApiData.Model
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("application")]
    public partial class application
    {
        public application()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string name { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string note { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string appid { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? userid { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(Model.tables.applicationid))]
        public List<tables> tables { get; set; }

        [Navigate(NavigateType.OneToOne, nameof(user))]
        public user user { get; set; }

    }
}
